import request from "../../../utils/request";
import store from "@/store";
export const service = () => {
  return store && store.getters.userInfo.tenantId ? "/device" : "ttdevice";
};

const system = "/admin";

export function getRegion(query) {
  return request({
    url: system + "/video/getRegion",
    method: "post",
    data: query,
  });
}

export function queryTenant(query) {
  return request({
    url: system + "/system/tenant/list",
    method: "post",
    data: query,
  });
}

export function queryTenantInfo(query) {
  return request({
    url: system + "/custom/manage/queryTenantInfo",
    method: "post",
    data: query,
  });
}
